package com.cskaoyan.service;

import com.cskaoyan.bean.MarketTopic;
import com.cskaoyan.bean.TopicComment;
import com.cskaoyan.bean.WeChartSearchHistory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创建日期: 2022/05/07 15:19
 *
 * @author 孙豪骏
 */
@Service
public interface WeChartService {


    void insertSearchHistory(WeChartSearchHistory weChatSearchHistory);

    List<WeChartSearchHistory> queryHotSearchHistory();


    List<WeChartSearchHistory> queryNormalHistory();

    void clearHistory();

    List<MarketTopic> queryTopicList();

    MarketTopic queryTopicDetail(Integer id);

    List<MarketTopic> queryRelatedTopic(Integer id);

    List<TopicComment> querryTopicComment(Integer valueId);

    void insertComment(TopicComment topicComment);

    TopicComment selectCommentById(Integer id);

    Integer countTopicCommentHasPicture(Integer valueId, Integer typeId);

    Integer countTopicCommentHasNoPicture(Integer valueId, Integer typeId);
}